package com.android.hedgehog.puzzles;

public class SeesawBlock {
	public int posValue; // -3,-2,-1 --- 1,2,3
	public int xPos;// 0,1...5
	public int yPos;//0,1,2...4
	public int weight = 1; // default: 1
	public int value;

	public SeesawBlock(int position, int weight) {
		setPosition(position);
		setWeight(weight);
		value = this.posValue * this.weight;
	}

	public void setPosition(int seed) {//seed=0..5
		xPos = seed;
		seed -= 2;
		if (seed < 1)
			seed--;
		posValue = seed;

	}
	public void setWeight(int seed) {
		if (seed > 20) {
			weight++;
		}
		if (seed > 30) {
			weight++;
		}

	}

}
